import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   /*  {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    }, */
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/MainView.vue')
    },
    {
      path: '/Show',
      name: 'Show',
      component: () => import('../views/ShowView.vue'),
      children: [
        {
          path: '/RoomTypes',
          name: 'RoomTypes',
          component: () => import('../views/Rooms/RoomTypesView.vue'),
          children:[
            {
              path: '/RoomTypesYM',
              name: 'RoomTypesYM',
              component: () => import('../views/Rooms/RoomTypesYMView.vue')
            },
          ]
        },
        {
          path: '/Orders',
          name: 'Orders',
          component: () => import('../views/Orders/Orders.vue'),
          children:[
            {
              path: '/Reservation',
              name: 'Reservation',
              component: () => import('../views/Orders/ReservationView.vue')
            },
          ]
        },
        {
          path: '/Client',
          name: 'Client',
          component: () => import('../views/Client/Client.vue'),
          children:[
            {
              path: '/Customer',
              name: 'Customer',
              component: () => import('../views/Client/CustomerView.vue')
            },
          ]
        },
        {
          path: '/Status',
          name: 'Status',
          component: () => import('../views/StatusView.vue')
        },
        {
          path: '/Wraparound',
          name: 'Wraparound',
          component: () => import('../views/WraparoundView.vue')
        },
      ]
    }
  ]
})

export default router